package com.founder.devwork.dto.req;

import java.time.LocalDate;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * CommitLogQueryDTO 用于封装提交日志查询的参数。
 * 提供消息、作者、日期范围、Git 实例、仓库 ID 和工程师 ID 等查询条件。
 */
@Data
public class CommitLogQueryDTO {

    private String message;
    private String authorEmail;
    private String authorFullname;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    private String gitInstance;
    private Long repositoryId;
    private String engineerId;

    private Integer minTotalChanges;

    private Integer maxTotalChanges;
}
